package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.mediator;
//中介者模式本质：多同事的网状交互关系，简化为星形结构，使用中介者作为调度管理的中心
//场景：MVC中的控制器c就是一个中介者对象，MV都和他打交道
//窗口应用，窗口对象也是中介者对象，各个组件“同事”都维护这窗口引用
//
public class client {
    public static void main(String [] args){
        President m = new President();
        Market market = new Market(m);
        Development development = new Development(m);
        Finacial finacial = new Finacial(m);
        market.selfAction();
        market.outAction();
    }
}
